package com.machine.filling.net.serialPort.send;

/**
 * Created by Administrator on 2018/3/25 0025.
 * 下发卡信息  数据域部分
 */

public class CMD_CardInfo {
    public CMD_CardInfo() {
    }

    private String gunNum_2; // 枪号

    private String carType_1;//流程代码02, 04
// 为1表示现金卡，为2表示该卡是客存卡，  3为币值卡，4为员工卡，为5则表
//    示该卡为挂失卡；若为6，则表示该卡为不可识别卡, 07 员工上岗卡；08员工检测卡；09数据库出错）

    private String pwdType_1;//密码标识符// 00 无密码.01有密码

    private String pwd_6;//密码

    private String discount_4;//优惠 幅度

    private String depositBalance_10;//存款余额

    private String bindCarFlag_1;//00  01

    private String carNum_6;//车牌号码

    public void setGunNum_2(String gunNum_2) {
        this.gunNum_2 = gunNum_2;
    }

    public void setCarType_1(String carType_1) {
        this.carType_1 = carType_1;
    }

    public void setPwdType_1(String pwdType_1) {
        this.pwdType_1 = pwdType_1;
    }

    public void setPwd_6(String pwd_6) {
        this.pwd_6 = pwd_6;
    }

    public void setDiscount_4(String discount_4) {
        this.discount_4 = discount_4;
    }

    public void setDepositBalance_10(String depositBalance_10) {
        this.depositBalance_10 = depositBalance_10;
    }

    public void setBindCarFlag_1(String bindCarFlag_1) {
        this.bindCarFlag_1 = bindCarFlag_1;
    }

    public void setCarNum_6(String carNum_6) {
        this.carNum_6 = carNum_6;
    }

    public String getHexStr() {
        return gunNum_2 + carType_1 + pwdType_1 + pwd_6 + discount_4 + depositBalance_10 + bindCarFlag_1 + carNum_6;
    }
}
